#! /bin/bash


# Remove the old plugin. ///////////////////////////////////////////////
rm -rf '/Library/Application Support/Steinberg/Components/mr_extension_u.bundle'

# Remove the old vst3. /////////////////////////////////////////////////
VST3Dir='/Library/Audio/Plug-Ins/VST3/Yamaha'
rm -rf "${VST3Dir}/ChannelStrip_m.vst3"
rm -rf "${VST3Dir}/ChannelStrip_s.vst3"
rm -rf "${VST3Dir}/RevHall.vst3"
rm -rf "${VST3Dir}/RevHallMix.vst3"
rm -rf "${VST3Dir}/RevPlate.vst3"
rm -rf "${VST3Dir}/RevPlateMix.vst3"
rm -rf "${VST3Dir}/RevRoom.vst3"
rm -rf "${VST3Dir}/RevRoomMix.vst3"

#Remove Project Templates. /////////////////////////////////////////////
# Cubase5V[YANuendo5vWFNgev[g폜.
AppPath="/Applications"
TempDirPath="Contents/templates"
TempName="*MR816*.cpr"
ls "/Applications" | while read line; do
	case $line in
		Cubase*5.app|Nuendo*5.app)
			rm -rf $AppPath/"$line"/$TempDirPath/$TempName
			;;
	esac
done

exit 0